function makePins(pinsdata) {
	len = pinsdata.length;
	document.getElementById('mapadiv').style.position="absolute";
	for(var i=0; i<len; i++) {
		ii = new Pin(pinsdata[i], mapadiv);
	};
};


function Pindata(x, y, id, name) {
	this.x = x;
	this.y = y;
	this.id = id;
	this.name = name;
}
function Pin(pindata) {
	this.pindata = pindata;
	this.img = new Image();
	this.idiv = document.createElement("div");
	this.idiv.setAttribute("class", "makewinlink");
	this.ia = document.createElement("a");
	this.ia.href="notification.xhtml?id="+pindata.id.toString();
	this.img.src = "../gfx/pin.png";
	this.idiv.style.float = "left";
	this.idiv.style.position = "absolute";
	this.ia.appendChild(this.img);
	this.idiv.appendChild(this.ia);
	this.idiv.title = pindata.name;
	document.getElementById('mapadiv').appendChild(this.idiv);
	this.idiv.style.left = pindata.x.toString()+"px";
	this.idiv.style.top = pindata.y.toString()+"px";
	pins.push(this);
};